{extend name="base" /} {block name="body"}
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">

        <li class="layui-this">OTA配置</li>
    </ul>
</div>

<form class="layui-form form-container" data-url="{:url('admin/system/updateota')}" localtion-url="{:url('system/ota')}">

    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="layui-form-item">
                <label class="layui-form-label">UpdateUrl</label>
                <div class="layui-input-inline">
                    <input type="text" name="updateurl" required lay-verify="required" value="{$ota_info.updateurl|default='http://www.laysns.com/api/index/update'}" autocomplete="off" class="layui-input" style="width:300px">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">UpdateKey</label>
                <div class="layui-input-inline">
                    <input type="text" name="updatekey" required lay-verify="required" value="{$ota_info.updatekey|default=''}" autocomplete="off" class="layui-input" style="width:300px">
                </div>
                <div class="label-tint">点击 <a href="http://www.laysns.com/apps/developer/myupkey.html" target="_blank">http://www.laysns.com/apps/developer/myupkey</a> 去申请</div>

            </div>

        </div>
    </div>
    <div class="formbtngroup">
        <button class="layui-btn layui-btn-sm" lay-submit="" type="submit" lay-filter="formadd">保存</button>
        <button onclick="history.go(-1);return false;" class="layui-btn layui-btn-primary layui-btn-sm">返回</button>

    </div>
</form>

{/block} {block name="js"}
<script type="text/javascript" src="__ADMIN__/js/formadd.js"></script>

{/block}